<%@page trimDirectiveWhitespaces="true" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<sec:authentication property="authorities" var="authorities"/>
<html>
<body>
<h2>Hello World!</h2>
<sec:authorize access="hasPermission('ROLE_USER')">
	<li><a href="${pageContext.request.contextPath}/success">success管理</a></li>
</sec:authorize>
<sec:authorize access="hasRole('ROLE_USER')">
	<li><a href="${pageContext.request.contextPath}/deny">deny管理</a></li>
</sec:authorize>
	<li><a href="${pageContext.request.contextPath}/getSecUser">getSecUser</a></li>
	<li><a href="${pageContext.request.contextPath}/user/pj-gu">User</a></li>
</body>
</html>
